<?php get_header(); ?>
	<!-- Page -->

			
			<div class="clear"></div>
			<?php 
				$con = 0;
				if (have_posts()) : ?>
				<h2 class="pagetitle"><?php echo 'Search Result for "'.esc_html( get_search_query() ).'"';?></h2>
				<?php while (have_posts()) : the_post(); 
				
					$con++;
						if( ($con % 2) == 1 ) $myclass = 'odd';
						else $myclass = 'even';
						
				?>
					<div class="post clearfix block-<?php echo $myclass; ?>">
						<h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
						<div class="cat-meta"><?php the_time('F jS, Y') ?> | Posted by <?php the_author() ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>

						<div class="entry theentry clearfix">

							<?php excerpt_link_modify2(); ?>
							<div class="more"><p><a href="<?php the_permalink(); ?>" title="Continue Reading">Continue Reading [+]</a></p></div>	
						</div>	
						<div class="clear"></div>
					</div>
					<?php if(!($con % 2) == 1) { ?><div class="clear"></div><?php } ?>
 				<?php endwhile; ?>
				<div class="clear"></div>
				<div class="navigation">
            		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
            		<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
            		<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
            		<?php } ?>
				</div>
				<div class="clear"></div>
			<?php else : ?>
				<div class="post clearfix">
					<h2>Not Found</h2>
					<p>Sorry, but you are looking for something that isn't here. Try different search? </p>
					<?php get_search_form(); ?>
				</div>
			<?php endif; ?>
		</div><!-- end of id="page" -->
        <?php get_sidebar(); ?>
<?php get_footer(); ?>